package com.h3c.ptability.entity;

import java.util.Arrays;
import java.util.Date;
import java.sql.Blob;
import javax.persistence.*;

import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
    import io.swagger.annotations.ApiModelProperty;

/**
 * Copyright (C), 2020-2020, h3c
 * FileName: PtMsgTemplate
 *
 * @Author: l22886
 * @Date: 2022-03-14
 * Description: pt_msg_template 实体
 * Version: 1.0
 */
@ApiModel(value="PtMsgTemplate对象", description="")
@Table(name = "pt_msg_template")
public class PtMsgTemplate {


    @ApiModelProperty(value = "消息模板ID")
    @Column(name = "msg_template_id")
    @TableId
    private String msgTemplateId;

    @ApiModelProperty(value = "应用ID")
    @Column(name = "app_id")
    private String appId;

    @ApiModelProperty(value = "消息模板编码")
    @Column(name = "msg_template_code")
    private String msgTemplateCode;

    @ApiModelProperty(value = "消息模板名称")
    @Column(name = "msg_template_name")
    private String msgTemplateName;

    @ApiModelProperty(value = "模板类型：1 邮件模板；2 短信模板；3 企微消息模板；")
    @Column(name = "msg_template_type")
    private Integer msgTemplateType;

    @ApiModelProperty(value = "邮件标题")
    @Column(name = "msg_template_title")
    private String msgTemplateTitle;

    @ApiModelProperty(value = "邮件内容")
    @Column(name = "msg_template_content")
    private String msgTemplateContent;

    @ApiModelProperty(value = "创建人姓名/工号")
    @Column(name = "creator_info")
    private String creatorInfo;

    @ApiModelProperty(value = "更新人姓名/工号")
    @Column(name = "updator_info")
    private String updatorInfo;

    @ApiModelProperty(value = "更新时间")
    @Column(name = "update_time")
    private Date updateTime;

    @ApiModelProperty(value = "模板图片")
    private byte[] emailTemplateContentPic;

    /**
     *  是否为系统邮件 1 是；0不是
     */
    private Integer systemEmail;

    public Integer getSystemEmail(){
        return this.systemEmail;
    }

    public void setSystemEmail(Integer system){
        this.systemEmail = system;
    }


    public String getMsgTemplateId() {
        return msgTemplateId;
    }

    public void setMsgTemplateId(String msgTemplateId) {
        this.msgTemplateId = msgTemplateId;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getMsgTemplateCode() {
        return msgTemplateCode;
    }

    public void setMsgTemplateCode(String msgTemplateCode) {
        this.msgTemplateCode = msgTemplateCode;
    }

    public String getMsgTemplateName() {
        return msgTemplateName;
    }

    public void setMsgTemplateName(String msgTemplateName) {
        this.msgTemplateName = msgTemplateName;
    }

    public Integer getMsgTemplateType() {
        return msgTemplateType;
    }

    public void setMsgTemplateType(Integer msgTemplateType) {
        this.msgTemplateType = msgTemplateType;
    }

    public String getMsgTemplateTitle() {
        return msgTemplateTitle;
    }

    public void setMsgTemplateTitle(String msgTemplateTitle) {
        this.msgTemplateTitle = msgTemplateTitle;
    }

    public String getMsgTemplateContent() {
        return msgTemplateContent;
    }

    public void setMsgTemplateContent(String msgTemplateContent) {
        this.msgTemplateContent = msgTemplateContent;
    }

    public String getUpdatorInfo() {
        return updatorInfo;
    }

    public void setUpdatorInfo(String updatorInfo) {
        this.updatorInfo = updatorInfo;
    }

    public String getCreatorInfo() {
        return creatorInfo;
    }

    public void setCreatorInfo(String creatorInfo) {
        this.creatorInfo = creatorInfo;
    }

    public Date getUpdateTime() {
        return updateTime;
    }
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public byte[] getEmailTemplateContentPic() {
        return emailTemplateContentPic;
    }
    public void setEmailTemplateContentPic(byte[] emailTemplateContentPic) {
        this.emailTemplateContentPic = emailTemplateContentPic;
    }

    @Override
    public String toString() {
        return "PtMsgTemplate{" +
                "msgTemplateId=" + msgTemplateId +
                ", appId=" + appId +
                ", msgTemplateCode=" + msgTemplateCode +
                ", msgTemplateName=" + msgTemplateName +
                ", msgTemplateType=" + msgTemplateType +
                ", msgTemplateTitle=" + msgTemplateTitle +
                ", msgTemplateContent=" + msgTemplateContent +
                ", creatorInfo='" + creatorInfo +
                ", updatorInfo=" + updatorInfo +
                ", updateTime=" + updateTime +
                ", emailTemplateContentPic=" + emailTemplateContentPic +
                "}";
    }
}
